package com.glela.common.verify;

import javax.validation.Constraint;  
import javax.validation.Payload;  
import java.lang.annotation.*;  
/**
 * @author liujie
 *
 * 自定义验证注解
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)  
@Constraint(validatedBy = CustomValidator.class)  
@Documented  
public @interface Custom {
	String message() default "{Validation failure}";  
	Class<?>[] groups() default {};  
    Class<? extends Payload>[] payload() default {};  

    //提供验证的方法
	String method();
	//提供验证的类
    Class<?> clazz();
}